#define _CRT_SECURE_NO_WARNINGS 1

#pragma pack(2)

#include<stdio.h>

struct A
{
	int a;
	short b;
	int c;
	char d;
};

struct B
{
	int a;
	short b;
	char c;
	int d;
};

#pragma pack()
int main(void)
{
	struct A sa = { 0 };
	struct B sb = { 0 };

	printf("%d %d", sizeof(sa), sizeof(sb));
	return 0;
}